<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title id="indexTitle">极盛时代 国风重燃</title>
    <!--<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>-->
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="full-screen" content="true"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="360-fullscreen" content="true"/>



    <style>
        html, body {
            -ms-touch-action: none;
            background: #000000;
            padding: 0;
            border: 0;
            margin: 0;
            height: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body>
<script src="config/config.js?"+Math.random()></script>

<script src="pixi.js/bin/pixi.min.js?"+Math.random()></script>
<script src="balaJS/Main.js?"+Math.random()></script>
<script src="balaJS/Hajime.js?"+Math.random()></script>
<script src="balaJS/ControlCenter.js?"+Math.random()></script>
<script src="balaJS/MusicControl.js?"+Math.random()></script>
<script src="balaJS/WeiXinAudioController.js?"+Math.random()></script>
<script src="balaJS/LazyPic.js?"+Math.random()></script>
<script src="balaJS/HintScreen.js?"+Math.random()></script>
<script src="balaJS/PreloadPage.js?"+Math.random()></script>
<script src="balaJS/HintContentHor.js?"+Math.random()></script>
<script src="balaJS/HintContentVer.js?"+Math.random()></script>
<script src="OtherJS/Scroller.js"></script>
<script src="OtherJS/TweenMax.min.js?"+Math.random()></script>





<script src="src/Page1.js?"+Math.random()></script>


<script src='http://res.wx.qq.com/open/js/jweixin-1.0.0.js' src-release="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<div style="display:none"><img src='suolue.png' width="400" height="400" />
    <?php
require_once "jssdk.php";
$jssdk = new JSSDK("wx409a5223727cfbde", "3750cb321b4965883f1ccbe1fc945f8d");
$signPackage = $jssdk->GetSignPackage();
    ?></div>

<!--<div id="LayerHintScreen"></div>-->
<!--<div id="Layer2D"></div>-->
<!--<div id="LayerPreloadPage"></div>-->
<script>
//    if(/Android (\d+\.\d+)/.test(navigator.userAgent)) {
//        var version = parseFloat(RegExp.$1);
//        if (version > 2.3) {
            var phoneScale = parseInt(window.screen.width) / 640;
            document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
//        } else {
//            document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
//        }
//    }else{
//document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
//}
</script>
<script>

    var preloadPage=new PreloadPage();
    var hint = HintScreen.Create();
    var main = Main.Create();


//    AudioSkip.skip();//音频预加载不完成也开始画面

</script>



<script>
    var timestamp = Date.parse(new Date());
    timestamp = timestamp / 1000;



    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: '<?php echo $signPackage["timestamp"];?>',
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline']
    });
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title:indexTitle, // 分享标题
            desc: indexDesc, // 分享描述
            link: 'http://www.yixuanhudong.com/'+indexUrl+'index.html', // 分享链接
            imgUrl:'http://www.yixuanhudong.com/'+indexUrl+'suolue.png',
            success: function () {
//                alert("分享成功！");
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareTimeline({
            title: indexTitle, // 分享标题
            link: 'http://www.yixuanhudong.com/'+indexUrl+'index.html', // 分享链接
            imgUrl:'http://www.yixuanhudong.com/'+indexUrl+'suolue.png',
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
    });
    var arr=["sound/bg.mp3|music1"];
    WeiXinAudioController.Create(arr);
</script>

</body>
</html>